﻿using MediatR;
using SmartProduction.Domain;
using SmartProduction.ErrorCode;
using System.ComponentModel.DataAnnotations;

namespace SmartProduction.Read.API.Application.Commands.JobCommand
{
    public class JobQueryCommand:IRequest<APIResult<APIPaing<Job>>>
    {
        public int PageIndex { get; set; } = 1;
        public int PageSize { get; set; } = 15;
        /// <summary>
        /// 工作中心编码
        /// </summary>
        [StringLength(50)]
        public string? JobNode { get; set; }
        /// <summary>
        /// 工作中心名称
        /// </summary>
        [StringLength(50)]
        public string? JobName { get; set; }
        /// <summary>
        /// 工作中心类型
        /// </summary>
        [StringLength(50)]
        public string? JobType { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int? ApprovalStatus { get; set; }
    }
}
